package com.entrogy.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;

@JsonIgnoreProperties(value = {"handler"})
public class ClassEntity implements Serializable {
	private int id;
	private String className;
	private int parentId;//0代表全校
	private int classTypeId;
    private int schoolCode;
    private ClassTypeEntity classTypeEntity;

    private int gradeType;//班级类型
	private String gradenumber;//班级数字
	private String classnumber;//班级数字
	private String gradeName;//年级名称

	public String getGradeName() {
		return gradeName;
	}

	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}

	public String getGradenumber() {
		return gradenumber;
	}

	public void setGradenumber(String gradenumber) {
		this.gradenumber = gradenumber;
	}

	public int getGradeType() {
		return gradeType;
	}

	public void setGradeType(int gradeType) {
		this.gradeType = gradeType;
	}

	public String getClassnumber() {
		return classnumber;
	}

	public void setClassnumber(String classnumber) {
		this.classnumber = classnumber;
	}

	public ClassEntity() {
	}
	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getParentId() {
		return parentId;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public int getClassTypeId() {
		return classTypeId;
	}

	public void setClassTypeId(int classTypeId) {
		this.classTypeId = classTypeId;
	}

	public int getSchoolCode() {
		return schoolCode;
	}

	public void setSchoolCode(int schoolCode) {
		this.schoolCode = schoolCode;
	}

	public ClassTypeEntity getClassTypeEntity() {
		return classTypeEntity;
	}

	public void setClassTypeEntity(ClassTypeEntity classTypeEntity) {
		this.classTypeEntity = classTypeEntity;
	}


	public  ClassEntity  getMyClassEntity(int  id,String className){
		ClassEntity classEntity =new ClassEntity();
		classEntity.setClassName(className);
		classEntity.setId(id);
		return classEntity;
	}
}
